import App from './App'

// #ifndef VUE3
import Vue from 'vue'
// 引入uview
import uView from "uview-ui";
Vue.use(uView);
// 配置
import baseVal from '@/config/base.js'
Vue.prototype.$baseVal = baseVal
// 请求api封装
import api from '@/config/api.js'
Vue.prototype.$httpApi = api
// 提示封装
import {tips} from '@/utils/tips.js'
Vue.prototype.$tips = tips
// 正侧验证
import {test} from '@/utils/test.js'
Vue.prototype.$test = test
// 
import publicJS from "@/utils/public.js"
Vue.use(publicJS)
// 储存
import store from '@/store'  
// 分享
import share from '@/common/share.js'
Vue.mixin(share)
// 
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App,
  store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif